﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Share/Company.master" AutoEventWireup="true"
    CodeFile="Wait.aspx.cs" Inherits="Company_Wait" %>

<%@ Register Src="../Share/CompanyNavigation.ascx" TagName="CompanyNavigation" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">

    <script src="../lib/script/jquery.min.js" type="text/javascript"></script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div id="maincontent">
        <div id="content-top">
            <div id="content-top-title">
                <div id="content-top-img">
                    <img src="../lib/images/content-content-top-title.gif" /></div>
                当前功能：<asp:Literal runat="server" ID="ltlInfo" Text="报价解密"></asp:Literal></div>
        </div>
        <uc1:CompanyNavigation ID="CompanyNavigation1" runat="server" BidType="Bid" ActiveLink="DecLink" />
        <br />
        <div>
            <fieldset>
                <legend>等待解密</legend>
                <div>
                    <p style="text-align: center;">
                        <b><span id="spantime">20</span>秒后，系统会自动进入解密页面。<br />
                        </b>
                    </p>
                    <p id="plink" style="text-align: center; display: none;">
                        如果您未自动进入解密页面，<a href="DecPrice.aspx?action=<%= action%>">点击</a>进入解密页面
                    </p>
                </div>
            </fieldset>
        </div>

        <script type="text/javascript">
            var time = 20;
            function SetSpanTime() {
                time--;
                if (time <= 0) {
                    window.location.href = 'DecPrice.aspx?action=' + '<%= action%>';
                    window.location = 'DecPrice.aspx?action=' + '<%= action%>';
                    $("#plink").show();
                    setInterval(SetSpanTime, 9999999);
                }
                $("#spantime").text(time);
            }
            setInterval(SetSpanTime, 1000);
            SetSpanTime();
        
        </script>

    </div>
</asp:Content>
